<div id="myModalMessage" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">

            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h3 id="myModalLabel"><?= lang("btn_view_send_message") ?></h3>
            </div>

            <div class="modal-body">
                <div id="messages"></div>
                <fieldset>
                    <div class="control-group">
                        <input name="project" id="project" type="hidden" value="<?= $id_project ?>" />
                        <h4><?= lang("word_send") . ' ' . lang("word_message") ?>:</h4>
                        <textarea id="message-field" name="message" class="col-md-6" rows="5" cols=""></textarea>
                    </div>

                </fieldset>
            </div>

            <div class="modal-footer">
                <button class="btn btn-danger" data-dismiss="modal" aria-hidden="true"><i class="icon-remove icon-white"></i> <?= lang('btn_close') ?></button>
                <a class="btn btn-success" onclick="sendMessage()"><i class="icon-ok icon-white"></i> <?= lang('word_send') ?></a>
            </div>
        </div>
    </div>
</form>
<script type="text/javascript">

    $('.alert').bind('closed', function() {
        alert('teste');
    });
</script>
</div>